//
//  AppDelegate.h
//  jungoo
//
//  Created by Dang Quang Trung on 7/24/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Facebook/Facebook.h"
#import "FacebookConnectOperation.h"
#define FB_APP_ID (@"134254509936814")
#import <CoreLocation/CoreLocation.h>

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wobjc-protocol-method-implementation"

#pragma clang diagnostic pop

@class User;
@class LoginViewController;


@interface AppDelegate : UIResponder <UIApplicationDelegate,CLLocationManagerDelegate>
{
    UIView *loadingView;
    User* user;
    UIWindow *window;
    UIViewController *viewController;
    Facebook *facebook;
    FacebookConnectOperation *operation;
 
    NSLock *lockObject;
}

@property (nonatomic, retain) User* user;
@property (nonatomic, assign) BOOL logined;
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UIViewController *viewController;
@property (nonatomic, retain) FacebookConnectOperation *operation;
@property (nonatomic, retain) Facebook *facebook;
@property (strong) CLLocationManager *locationManager;

+ (AppDelegate*) shareDelegate;
- (void)changeUser;
- (void)showLoadingView;
- (void)hideLoadingView;
- (void)gotoHome;

@end
